package com.waitingresult.designpattern.demo.controller;

import com.waitingresult.designpattern.demo.entity.DemoRequest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 * @Author: WangShuai
 * @CreateTime: 2022-12-15  21:23
 * @Description:
 * @Version: 1.0
 */
@RestController
public class DemoController {
    @RequestMapping("demo")
    public Object demo(@RequestBody DemoRequest request){
        System.err.println("ok");
    //    request.setDetail(BigDecimal.ZERO);
        return null;
    }
}
